import fetch from "@/utils/fetch";

export function selectMyCaiwuVo(params) {
  return fetch({
    url: "/api/dailiOrder/get/selectMyCaiwuVo",
    method: "get",
    params,
  });
}
export function selectJiazhuangList(params) {
  return fetch({
    url: "/api/jiazhuang/get/selectJiazhuangList",
    method: "get",
    params,
  });
}

// 家装订单列表（客服）
export function selectJiaZhuangOrderPage(params) {
  return fetch({
    url: "/api/dailiOrder/get/selectJiaZhuangOrderPage",
    method: "get",
    params,
  });
}

// 家装订单列表（商务）
export function selecJiaOrderPageDataForShangwu(params) {
  return fetch({
    url: "/api/dailiOrder/get/selecJiaOrderPageDataForShangwu",
    method: "get",
    params,
  });
}

// 商务删除订单
export function shangwuShanchuOrder(data) {
  return fetch({
    url: "/api/dailiOrder/post/shangwuShanchuOrder",
    method: "post",
    data,
  });
}


// 冻结会员
export function dongjieUser(data) {
  return fetch({
    url: "/api/sysuser/post/dongjieUser",
    method: "post",
    data,
  });
}


export function selectAllJiaZhuangOrderPage(params) {
  return fetch({
    url: "/api/dailiOrder/get/selectAllJiaZhuangOrderPage",
    method: "get",
    params,
  });
}

export function selectRegisterListPage(params) {
  return fetch({
    url: "/api/sysuser/get/selectRegisterListPage",
    method: "get",
    params,
  });
}
export function jiazhuangdingdanshenhe(data) {
  return fetch({
    url: "/api/dailiOrder/post/jiaOrderShenhe",
    method: "post",
    data,
  });
}
export function selectPaidanPageVo(params) {
  return fetch({
    url: "/api/dailiOrder/get/selectPaidanPageVo",
    method: "get",
    params,
  });
}
export function paidanOrder(data) {
  return fetch({
    url: "/api/dailiOrder/post/paidanOrder",
    method: "post",
    data,
  });
}

export function updateUserLevel(data) {
  return fetch({
    url: "/api/sysuser/post/updateUserLevel",
    method: "post",
    data,
  });
}

export function sysDictbyMultiType(params) {
  return fetch({
    url: "/api/sysDict/byMultiType",
    method: "get",
    params,
  });
}

export function selectShouYiPageByUser(params) {
  return fetch({
    url: "/api/dailiOrder/get/selectShouYiPage",
    method: "get",
    params,
  });
}

export function selectFuzhouOrderPage(params) {
  return fetch({
    url: "/api/fuzhouOrder/get/selectFuzhouOrderPage",
    method: "get",
    params,
  });
}
export function selectHoutaiUserTixianLogPage(params) {
  return fetch({
    url: "/api/sysTixian/get/selectHoutaiUserTixianLogPage",
    method: "get",
    params,
  });
}

export function selectShouyiPageByOrder(params) {
  return fetch({
    url: "/api/dailiOrder/get/selectShouyiPageByOrder",
    method: "get",
    params,
  });
}

export function selectQuDaoDarenTree(params) {
  return fetch({
    url: "/api/sysuser/get/selectQuDaoDarenTree",
    method: "get",
    params,
  });
}
export function selectQudaoZhuList(params) {
  return fetch({
    url: "/api/sysuser/get/selectQudaoZhuList",
    method: "get",
    params,
  });
}
export function houtaiSetTixianStatus(params) {
  return fetch({
    url: "/api/sysTixian/post/selectQudaoZhuList",
    method: "post",
    params,
  });
}
export function userSetYaoqingma(data) {
  return fetch({
    url: "/api/sysuser/post/setYaoqingma",
    method: "post",
    data,
  });
}
export function selectUserOrderList(params) {
  return fetch({
    url: "/api/dailiOrder/get/selectUserOrderList",
    method: "get",
    params,
  });
}

export function selectTotalOrderPrice(params) {
  return fetch({
    url: "/api/dailiOrder/get/selectTotalOrderPrice",
    method: "get",
    params,
  });
}

export function selectHoutaiUserTixianLogTotalPrice(params) {
  return fetch({
    url: "/api/sysTixian/get/selectHoutaiUserTixianLogTotalPrice",
    method: "get",
    params,
  });
}
export function selectCaiwuOrderList(params) {
  return fetch({
    url: "/api/dailiOrder/get/selectCaiwuOrderList",
    method: "get",
    params,
  });
}
export function selectCaiwuJiesuanOrderList(params) {
  return fetch({
    url: "/api/dailiOrder/get/selectCaiwuJiesuanOrderList",
    method: "get",
    params,
  });
}
export function selectDarenDailiOrderPage(params) {
  return fetch({
    url: "/api/dailiOrder/get/selectDarenDailiOrderPage",
    method: "get",
    params,
  });
}
export function selectXiansuoInfoVo(params) {
  return fetch({
    url: "/api/dailiOrder/get/selectXiansuoInfoVo",
    method: "get",
    params,
  });
}
export function selectActivityTemplatePage(params) {
  return fetch({
    url: "/api/activity/get/selectActivityTemplatePage",
    method: "get",
    params,
  });
}
export function selectDarenListpage(params) {
  return fetch({
    url: "/api/sysuser/get/selectDarenListpage",
    method: "get",
    params,
  });
}
export function editXiansuo(data) {
  return fetch({
    url: "/api/dailiOrder/put/editXiansuo",
    method: "put",
    data,
  });
}
export function updateActiviyTemplate(data) {
  return fetch({
    url: "/api/activity/put/updateActiviyTemplate",
    method: "put",
    data,
  });
}
export function setRewardRote(data) {
  return fetch({
    url: "/api/sysuser/put/setRewardRote",
    method: "put",
    data,
  });
}
export function saveActiviyTemplate(data) {
  return fetch({
    url: "/api/activity/post/saveActiviyTemplate",
    method: "post",
    data,
  });
}
export function addDailiUser(data) {
  return fetch({
    url: "/api/sysuser/post/addDailiUser",
    method: "post",
    data,
  });
}
export function qrCode(data) {
  return fetch({
    url: "/api/sysuser/post/qrCode",
    method: "post",
    data,
  });
}
export function updateDailiUser(data) {
  return fetch({
    url: "/api/sysuser/put/updateDailiUser",
    method: "put",
    data,
  });
}
export function selectQudaozhuUserList(params) {
  return fetch({
    url: "/api/sysuser/get/selectQudaozhuUserList",
    method: "get",
    params,
  });
}
export function addQudaozhu(data) {
  return fetch({
    url: "/api/sysuser/post/addQudaozhu",
    method: "post",
    data,
  });
}
export function updateQudaozhu(data) {
  return fetch({
    url: "/api/sysuser/put/updateQudaozhu",
    method: "put",
    data,
  });
}
export function selectRegionTree(params) {
  return fetch({
    url: "/api/sysregion/get/selectHoutaiRegionTree",
    method: "get",
    params,
  });
}

export function setRegionIsOpen(data) {
  return fetch({
    url: "/api/sysregion/post/setRegionIsOpen",
    method: "post",
    data,
  });
}
export function selectAdminLogIpRegionTree(params) {
  return fetch({
    url: "/api/adminLog/get/selectAdminLogIpRegionTree",
    method: "get",
    params,
  });
}
export function jiaOrderCancelLiangfang(data) {
  return fetch({
    url: "/api/dailiOrder/post/jiaOrderCancelLiangfang",
    method: "post",
    data,
  });
}
export function exportSysRegion(data) {
  return fetch({
    url: "/api/sysregion/post/exportSysRegion",
    method: "post",
    data,
    responseType: "blob",
  });
}
export function exportTixianLog(data) {
  return fetch({
    url: "/api/sysTixian/post/exportTixianLog",
    method: "post",
    data,
    responseType: "blob",
  });
}
export function exportInSysRegion(data) {
  return fetch({
    url: "/api/sysregion/post/exportInSysRegion",
    method: "post",
    data,
  });
}

// 会员创建新订单
export function addNewOrder(data) {
  return fetch({
    url: "/api/dailiOrder/post/addNewOrder",
    method: "post",
    data,
  });
}
// 商务创建新订单
export function addNewShangwuOrder(data) {
  return fetch({
    url: "/api/dailiOrder/post/addNewShangwuOrder",
    method: "post",
    data,
  });
}
export function exportInData(data) {
  return fetch({
    url: "/api/dailiOrder/post/exportInData",
    method: "post",
    data,
  });
}

// 撤销提现
export function cancelTixianLog(data) {
  return fetch({
    url: "/api/sysTixian/post/cancelTixianLog",
    method: "post",
    data,
  });
}

export function exportInZhuanzhangLog(data) {
  return fetch({
    url: "/api/sysTixian/post/exportInZhuanzhangLog",
    method: "post",
    data,
  });
}
export function exportOutData(data) {
  return fetch({
    url: "/api/dailiOrder/post/exportOutData",
    method: "post",
    data,
  });
}

export function exportJiazhuangOrderList(data) {
  return fetch({
    url: "/api/dailiOrder/post/exportJiazhuangOrderList",
    method: "post",
    data,
    responseType: "blob",
  });
}
// 后台设置已量房
export function houtaiSetLiangfang(data) {
  return fetch({
    url: "/api/dailiOrder/post/houtaiSetLiangfang",
    method: "post",
    data,
  });
}
export function setSysRegionCacheNoPrice(data) {
  return fetch({
    url: "/api/sysregion/post/setSysRegionCacheNoPrice",
    method: "post",
    data,
  });
}

// 商务区域树
export function selectShangwuRegionTree(params) {
  return fetch({
    url: "/api/sysregion/get/selectShangwuRegionTree",
    method: "get",
    params,
  });
}

// 客服 查看订单详情
export function selectJiaOrderDetailVo(params) {
  return fetch({
    url: "/api/dailiOrder/get/selectJiaOrderDetailVo",
    method: "get",
    params,
  });
}
// 客服提交小计
export function kefuXiaojiTijiao(data) {
  return fetch({
    url: "/api/dailiOrder/post/kefuXiaojiTijiao",
    method: "post",
    data,
  });
}
// 手动派单装修公司
export function shoudongPaidanCompany(data) {
  return fetch({
    url: "/api/dailiOrder/post/shoudongPaidanCompany",
    method: "post",
    data,
  });
}

// 商务 查看订单详情
export function selectJiaOrderDetailVoForShangwu(params) {
  return fetch({
    url: "/api/dailiOrder/get/selectJiaOrderDetailVoForShangwu",
    method: "get",
    params,
  });
}

// 查看系统配置
export function selectSysConfigVo(params) {
  return fetch({
    url: "/api/sysTixian/get/selectSysConfigVo",
    method: "get",
    params,
  });
}

// 是否可提现配置
export function setCanTixianConfig(data) {
  return fetch({
    url: "/api/sysTixian/post/setCanTixianConfig",
    method: "post",
    data,
  });
}
// 客服 设置某个订单的装修公司量房成功
export function zxComanyHoutaiLiangfang(data) {
  return fetch({
    url: "/api/dailiOrder/post/zxComanyHoutaiLiangfang",
    method: "post",
    data,
  });
}
// 客服 设置某个订单的装修公司签单成功
export function zxComanyHoutaiQiandan(data) {
  return fetch({
    url: "/api/dailiOrder/post/zxComanyHoutaiQiandan",
    method: "post",
    data,
  });
}
// 客服 设置某个订单的装修公司跑单成功
export function zxComanyHoutaiPaodan(data) {
  return fetch({
    url: "/api/dailiOrder/post/zxComanyHoutaiPaodan",
    method: "post",
    data,
  });
}

// 修改订单详情 （客服）
export function updateJiaOrderDetail(data) {
  return fetch({
    url: "/api/dailiOrder/post/updateJiaOrderDetail",
    method: "post",
    data,
  });
}
// 修改订单详情 （商务）
export function updateShangwuJiaOrderDetail(data) {
  return fetch({
    url: "/api/dailiOrder/post/updateShangwuJiaOrderDetail",
    method: "post",
    data,
  });
}

// 查询用户线
export function selectSysUserXianVoList(params) {
  return fetch({
    url: "/api/sysuser/get/selectSysUserXianVoList",
    method: "get",
    params,
  });
}

// 提现记录的卡号信息同步用户的卡号信息
export function tixianLogSyncUserBank(data) {
  return fetch({
    url: "/api/sysTixian/post/tixianLogSyncUserBank",
    method: "post",
    data,
  });
}

// ================================= 装修公司  =========================================
export function selectZxRegionTree(params) {
  return fetch({
    url: "/api/zxRegion/get/selectZxRegionTree",
    method: "get",
    params,
  });
}

export function selectZxCompanyPageData(params) {
  return fetch({
    url: "/api/zxCompany/get/selectZxCompanyPageData",
    method: "get",
    params,
  });
}

// 商务查看装修公司列表
export function selectZxCompanyShangwuPageData(params) {
  return fetch({
    url: "/api/zxCompany/get/selectZxCompanyShangwuPageData",
    method: "get",
    params,
  });
}
export function selectZxOrderPageData(params) {
  return fetch({
    url: "/api/zxOrder/get/selectZxOrderPageData",
    method: "get",
    params,
  });
}
export function selectCompanyVoList(params) {
  return fetch({
    url: "/api/zxCompany/get/selectCompanyVoList",
    method: "get",
    params,
  });
}
// 装修公司审核通过
export function zxCompanyShenhe(data) {
  return fetch({
    url: "/api/zxCompany/post/zxCompanyShenhe",
    method: "post",
    data,
  });
}
// 查询消费记录
export function selectXiaofeiLogVoPage(params) {
  return fetch({
    url: "/api/zxlog/get/selectXiaofeiLogVoPage",
    method: "get",
    params,
  });
}
// 充值记录
export function selectTopUpLogVoPageData(params) {
  return fetch({
    url: "/api/zxlog/get/selectTopUpLogVoPageData",
    method: "get",
    params,
  });
}

// 充值审核
export function setTopUpPrice(data) {
  return fetch({
    url: "/api/zxlog/post/setTopUpPrice",
    method: "post",
    data,
  });
}


// 修改公司区域
export function updateCompanyRegion(data) {
  return fetch({
    url: "/api/zxCompany/post/updateCompanyRegion",
    method: "post",
    data,
  });
}


// 看广告签到 记录
export function selectQianDaoLogPage(params) {
  return fetch({
    url: "/api/jiaAd/get/selectQianDaoLogPage",
    method: "get",
    params,
  });
}
export function selectJifenTotal(params) {
  return fetch({
    url: "/api/jiaAd/get/selectJifenTotal",
    method: "get",
    params,
  });
}
